package com.fauks.ssm.springbyanno.config;

import com.fauks.ssm.springbyanno.bean.Yellow;
import org.springframework.context.annotation.Bean;

/**
 * bean声明收起
 */
//@Configuration
public class LifeCycleConfig {

    @Bean(initMethod = "init", destroyMethod = "destroy")
    public Yellow yello() {
        return new Yellow();
    }
}
